package cn.ittaoli.movie.service;

import cn.ittaoli.movie.dao.NavMapper;
import cn.ittaoli.movie.dao.NavMapperCustomer;
import cn.ittaoli.movie.model.Admin;
import cn.ittaoli.movie.model.Nav;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lub_lenovo on 2017/11/6.
 */
@Service
public class NavService {

    @Autowired
    private NavMapper navMapper;

    @Autowired
    private NavMapperCustomer navMapperCustomer;

    public Integer add(Nav nav) {
        return navMapper.insert(nav);
    }

    public List<Nav> getList() {
        return navMapperCustomer.getAll();
    }
}
